package org.example.java_chatroom.model;

import org.springframework.messaging.MessageHeaders;

/**
 * @Author @fiber-cloud
 * @Date 2025/11/5 10:27
 */
public class Message implements org.springframework.messaging.Message {

    private int messageId;
    //发送方
    private int fromId;
    //接收方
    private String fromName;
    //会话ID
    private int sessionId;

    private String content;

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public int getFromId() {
        return fromId;
    }

    public void setFromId(int fromId) {
        this.fromId = fromId;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public int getSessionId() {
        return sessionId;
    }

    public void setSessionId(int sessionId) {
        this.sessionId = sessionId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public Object getPayload() {
        return null;
    }

    @Override
    public MessageHeaders getHeaders() {
        return null;
    }
}
